package com.club.controller;

import com.club.entity.R;
import com.club.service.SystemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author chaochao(vx : zhangfec)
 * @Date 2023/1/11 16:48
 * @Version 1.0
 */
@Api(tags = "系统操作controller")
@RestController
@RequestMapping("/system")
@RequiredArgsConstructor
public class SystemController {

    private final SystemService systemService;

    /**
     * 获取发布内容
     *
     * @return R
     */
    @ApiOperation(value = "获取发布内容")
    @GetMapping("/getPubData")
    public R getPubData() {
        return systemService.getPubData();
    }


    /**
     * 获取操作日志记录
     *
     * @return R
     */
    @ApiOperation(value = "获取操作日志记录")
    @GetMapping("/getOperationData")
    public R getOperationData() {
        return systemService.getOperationData();
    }

}
